<template>
	<view class="wrap">
		<view class="order_detail">
			<view class="top">
				<view class="footer_btn">
					<u-button style="margin-right: 0.4rem;" size="medium" shape="circle" type="warning"
						@click="publishContent">发布</u-button>
				</view>
			</view>
			<view class="content">
				<view class="title">
					{{'订单编号: ' + order.orderSn}}
				</view>
				<view class="list">
					<view class="item" v-for="(item,index) in order.items" :key="index">
						<u-row gutter="12">
							<u-col :span="3">
								<u-image width="100%" height="150rpx" :src="imgUrl+item.goods.pic"></u-image>
							</u-col>
							<u-col :span="9" @click="toGoods(item.goods.id)">
								<view class="gl-name">{{item.goods.name}}</view>
								<view class="gl-descript">{{item.goods.descript}}</view>
							</u-col>
						</u-row>
						<u-row gutter="12">


							<u-cell-item title="描述相符" :arrow="false">
								<mradio v-model="item.goodMark" @change="goodMarkChange"></mradio>
							</u-cell-item>


							<!-- <u-cell-item title="描述相符"  :arrow="false">
							<u-rate v-model="item.goodMark" :count="5"></u-rate>
							</u-cell-item> -->

						</u-row>




						<u-row gutter="12">

							<u-cell-item :arrow="false">
								<u-input type="textarea" maxlength=100 placeholder="最多输入100个字" v-model="item.content" />
							</u-cell-item>

						</u-row>

						<u-row gutter="12">
							<u-cell-item :arrow="false">
								<u-upload :header="header" :action="uploadAction" @on-change="changeFile"
									@on-success="uploadSuccess(item)" @on-error="uploadError" @on-remove="uploadRemove" max-count="4"
									width="160" height="160"></u-upload>
							</u-cell-item>

						</u-row>


					</view>
				</view>
			</view>
			<view>
				<u-cell-group title="订单星评">
					<u-cell-item title="描述相符" :arrow="false">
						<u-rate v-model="order.orderMark" :count="5"></u-rate>
					</u-cell-item>
					<u-cell-item title="物流服务" :arrow="false">
						<u-rate v-model="order.expMark" :count="5"></u-rate>
					</u-cell-item>
					<u-cell-item title="服务态度" :arrow="false">
						<u-rate v-model="order.serverMark" :count="5"></u-rate>
					</u-cell-item>
				</u-cell-group>
			</view>
		</view>
	</view>
</template>

<script src="./pcomment.js"></script>

<style lang="scss" scoped>
	.order_detail {
		margin: 30rpx;

		.top {
			.address_detail {
				padding: 5px;
			}

			.footer_btn {
				text-align: right;

				.u-btn {
					margin-left: 20rpx;
				}
			}
		}

		.content {
			margin-top: 40rpx;

			.total {
				text-align: right;
				padding: 10px;
			}

			.list {
				.item {
					margin-top: 20rpx;

					.gl-name {
						font-size: 26rpx;
					}

					.gl-descript {
						margin-top: 14rpx;
						font-size: 20rpx;
					}

					.gl-price {
						margin-top: 26rpx;
						font-size: 24rpx;
					}
				}
			}

			.total {}
		}



	}
</style>
